import API from "@/utils/request";

export function getPageNotice({pageNum,pageSize}){
    return API.get('/notice/page',{
        params:{
            pageNum,
            pageSize
        }
    })
}

export function getAllNotice(){
    return API.get('/notice')
}

export function getNoticeById(id){
    return API.get(`/notice/${id}`)
}

export function saveNotice(notice){
    return API.post('/notice',notice)
}

export function updateNotice(notice){
    return API.put('/notice',notice)
}

export function removeNotice(id){
    return API.delete(`/notice/${id}`)
}